package com.back.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyang
 * @since 2025-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("exam_applicant")
public class ExamApplicant implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 考试ID
     */
    private Long examId;

    /**
     * 职位申请ID
     */
    private Long applicationId;

    /**
     * 应聘者ID
     */
    private Long userId;

    /**
     * 准考证号
     */
    private String accessCode;

    /**
     * 状态：pending-未开始, started-已开始, submitted-已提交, absent-缺席
     */
    private String status;

    /**
     * 实际开始时间
     */
    private Long startTime;

    /**
     * 实际提交时间
     */
    private Long submitTime;

    /**
     * 得分
     */
    private Integer score;

    /**
     * 考试IP地址
     */
    private String ipAddress;

    /**
     * 浏览器信息
     */
    private String browserInfo;

    /**
     * 作弊警告次数
     */
    private Integer warningCount;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 更新时间
     */
    private Long updateTime;

    /**
     * 是否删除
     */
    private Boolean deleted;


}
